<?php
/**
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://dev.joomla.org/component/option,com_jd-wiki/Itemid,31/id,tutorials:modules/
 * @license    GNU/GPL
*/

// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view');

/**
 * HTML View class for the HelloWorld Component
 *
 * @package    HelloWorld
 */

class calendarViewdetail extends JView
{
    function display($tpl = null)
    {
	//	var_dump('detail view');
		
  //      $model = $this->getModel();
		//$model->_setBuild('detail');
		//$model->_BuildDetail();
  //      $items =  $this->get('Data');
		
	//	$this->assignRef('items', $items);
	//	if(JRequest::getVar('tmpl') == 'component'){
	//		JRequest::setVar('tmpl', 'component'); //force the component template
	//	}
		
        parent::display($tpl);
		
    }
	
	 function display_api($tpl = null)
    {
	//	var_dump('detail view api');
		
  //      $model = $this->getModel();
		//$model->_setBuild('detail');
		//$model->_BuildDetail();
  //      $items =  $this->get('Data');
  		$tpl = 'api';
		
	//	$this->assignRef('items', $items);
	//	if(JRequest::getVar('tmpl') == 'component'){
	//		JRequest::setVar('tmpl', 'component'); //force the component template
	//	}
		JHTML::script('show_ann.js', 'components/com_bookstore/js/');
        parent::display($tpl);
		
    }
}

?>
